package com.qianyu.project.utils;

/**
 * @author  gs
 * @description   响应对象工具类
 */
public class ResultTool {

    public static Result success() {
        return new Result().success();
    }

    public static Result success(Object data){
        return new Result().success().put(data);
    }

    public static Result success(String message,Object data){
        return new Result().success(message).put(data);
    }

    public static Result success(String message){
        return new Result().success(message);
    }

    public static Result failure() {
        return new Result().error();
    }

    public static Result failure(String message){
        return new Result().error(message);
    }
}
